package com.yuyou.fn.crm.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.crm.entity.FromCategory;
import com.yuyou.fn.crm.vo.FromCategoryRelativeVo;

import java.util.List;

/**
 *
 * FromCategory 表数据服务层接口
 *
 */
public interface IFromCategoryService extends ISuperService<FromCategory,Long> {


    List<FromCategory> findAllFromCategoryByAreaTeamId(Long areaTeamId);

    List<FromCategory> findRootFromCategoryByAreaTeamId(Long areaTeamId);

    List<FromCategory> findSubFromCategoryByRootFromCategoryId(Long rootFromCategoryId );


    void saveOrUpdateBigFromCategory(Long categoryId, Long areaTeamId, String categoryName);

    void saveOrUpdateSmallFromCategory(Long parentFromCategoryId, List<String> categoryNames);

    void delBigFromCategory(Long categoryId);

    List<FromCategoryRelativeVo> findFromCategoryRelative(long areaTeamId);
}